/**
 * 
 */
package com.tiduyun.data.exchange.util.http;

/**
 * @author wuzheng@tiduyun.com
 *
 */
public class UnexpectedStatusCodeException extends Exception {

    private static final long serialVersionUID = 1L;

    private int statusCode;

    public UnexpectedStatusCodeException(int statusCode, String message) {
        super(message);
        this.statusCode = statusCode;
    }

    public UnexpectedStatusCodeException(int statusCode) {
        this(statusCode, "unexpected status code: " + statusCode);
    }

    public int getStatusCode() {
        return statusCode;
    }

}
